<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<c:set var="contestPath" value="<%=request.getContextPath()%>"></c:set>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>学生信息</title>
</head>
<body>
	<div class="page-content-area">
			<div class="row">
				<div class="col-xs-12">
				<!-- PAGE CONTENT BEGINS -->
					<table id="testListTable" class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th width=50>
									<button id="addTestBtn" type="button" class="btn btn-xs btn-success">
	                                	<i class="ace-icon fa fa-plus bigger-120"></i>
	                                </button>
                                </th>
								<th width=50 class="center">
									<label class="position-relative">
										<input type="checkbox" class="ace" />
										<span class="lbl"></span>
									</label>
								</th>
							    <th width=150>姓名</th>
							    <th>科目</th>
							    <th width=150>操作</th>
                             </tr>
						</thead>

						<tbody>
                        <c:forEach items="${studentList }" var="student">
                            <tr>
                        		<td></td>
                                <td class="center">
                                    <label class="position-relative">
                                        <input type="checkbox" class="ace" />
                                        <span class="lbl"></span>
                                    </label>
                                </td>
                                <td>${student.id }</td>
                                <td class="subject">
                                <c:forEach items="${student.subjectList }" var="subject">
                                	<span>${subject.name }</span>
                                </c:forEach>
                                </td>
								<td>
									<button title="<spring:message code="test.show.message"/>" class="btn btn-xs btn-success show-test">
										<i class="ace-icon fa fa-comment bigger-130"></i>
									</button>
								
									<button title="<spring:message code="test.edit.message"/>" class="btn btn-xs btn-info edit-test" value="${test.id }">
										<i class="ace-icon fa fa-pencil bigger-120"></i>
									</button>

									<button title="<spring:message code="test.del.message"/>" class="btn btn-xs btn-danger delete-test" value="${test.id }">
										<i class="ace-icon fa fa-trash-o bigger-120"></i>
									</button>
								</td>
							</tr>
						</c:forEach>
						</tbody>
					</table>
					<div class="hr hr-18 dotted hr-double"></div>
				</div><!-- /.col -->
			</div><!-- /.row -->
		</div><!-- /.page-content-area -->
	
</body>
</html>